﻿<%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage" %>

<asp:Content ID="aboutTitle" ContentPlaceHolderID="TitleContent" runat="server">
    About - My ASP.NET MVC Application
</asp:Content>

<asp:Content ID="aboutContent" ContentPlaceHolderID="MainContent" runat="server">
    <hgroup class="title">
        <h1>Search.</h1>
        <h2><%: ViewBag.Message %></h2>
        
    </hgroup>
    <% var myArray = (string[,])ViewData["MyDataList"]; %>
    <% var myEventnum = (int)ViewData["MyEventNumber"]; %>
    
    <table id="table-design">
        <thead>
		    <th>Event Name</th>
		    <th>Event Description</th>
		</thead>
    <% for (int i = 0; i < myEventnum; i++)
       {%>
        
        <tr>
            <td><% =myArray[i,0] %></td>
            <td><% =myArray[i,1] %></td>
        </tr>
        <% }%>
    </table>
    

    
</asp:Content>